package com.ruoyi.project.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 租户对象 sys_tenant
 * 
 * @author ruoyi
 * @date 2020-03-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_tenant")
public class SysTenant
{
    private static final long serialVersionUID = 1L;

    /** 租户id */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /** 租户名称 */
    @Excel(name = "租户名称")
    private String name;

    /** 英文名称 */
    @Excel(name = "英文名称")
    private String enName;

    /** 租户编号 */
    @Excel(name = "租户编号")
    private String code;

    /** 联系人 */
    @Excel(name = "联系人")
    private String contactPerson;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 电子邮箱 */
    @Excel(name = "电子邮箱")
    private String email;

    /** 授权开始时间 */
    @Excel(name = "授权开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 授权结束时间 */
    @Excel(name = "授权结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 状态（0正常9-冻结） */
    @Excel(name = "状态", readConverterExp = "0=正常9-冻结")
    private Long status;

    /** 删除标记 */
    private String delFlag;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;




    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("enName", getEnName())
            .append("code", getCode())
            .append("contactPerson", getContactPerson())
            .append("phone", getPhone())
            .append("email", getEmail())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
